﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NDF.XnaLibrary.Models;

namespace NDF.XnaLibrary.EnumEqualityComparers
{
	public class ModelBoneIndexEqualityComparer : IEqualityComparer<ModelBoneIndex>
	{
		private static ModelBoneIndexEqualityComparer defaultInstance;

		public static ModelBoneIndexEqualityComparer Default
		{
			get
			{
				if (defaultInstance == null)
					defaultInstance = new ModelBoneIndexEqualityComparer();
				return defaultInstance;
			}
		}

		public bool Equals(ModelBoneIndex x, ModelBoneIndex y)
		{
			return x == y;
		}

		public int GetHashCode(ModelBoneIndex obj)
		{
			return obj.GetHashCode();
		}
	}
}
